package com.sketch.controller;

import com.sketch.commom.PageResult;
import com.sketch.commom.Result;
import com.sketch.entity.VipPrice;
import com.sketch.entity.dto.DeleteDTO;
import com.sketch.entity.dto.VipPriceDTO;
import com.sketch.service.VipPriceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(tags = "vip价格管理 API")
@RequestMapping(value = "/api/client/vipPrice")
public class VipPriceController {
    @Resource
    private VipPriceService vipPriceService;

    /**
     * 列表
     */
    @GetMapping("/list")
    @ApiOperation("VIP列表")
    public Result<List<VipPrice>> list() {
        return vipPriceService.list();
    }
}
